home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
Symbols
/
Other
/
list-inversion
< prev
next >
Wrap
Text File
|
1998-10-22
|
520b
|
20 lines
list-inversion inversion-list symbol-list
simply a mapping of symbol-inversion where
inversion-list can be both symbols or integers.
in the first ex. inverts first symbol 'd around
first in inversion-list 'a then second symbol
around second in inversion-list and so on. . .
(list-inversion '(a b c) '(d f g f f g h))
-->(-D -D -C -F -D -C -H)
(list-inversion '(4 3 1 5) '(d f g f f g h))
-->(F B -E F D A -F)
(list-inversion '(4 3 1 5)
(symbol-divide '(2 3) nil nil '(d f g f f g h)))
-->((F D) (A B B) (-E -F))